﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyBlog.ServiceInterface;
using MyBlog.Model;
using MyBlog.Common;
using MyBlog.BusinessInterface;

namespace MyBlog.Service
{
    public class VisitorService :IVisitorService
    {
        IBusinessVisitor _business;

        public VisitorService(IBusinessVisitor business)
        {
            _business = business;
        }

        public void Add(Model.VisitorModel model)
        {
            _business.Add(model);
        }

        public List<Model.VisitorModel> GetAll(bool isTracking = true)
        {
            return _business.GetAll(isTracking);
        }

        public List<VisitorModel> GetAll(VisitorModel model, bool isTracking = true)
        {
            return _business.GetAll(model,isTracking);
        }

    }
}
